﻿using Microsoft.EntityFrameworkCore;

namespace CRM.Models.SeedData
{
    public static class Extension
    {
        public static void SeedData(this ModelBuilder mb)
        {
            mb.Entity<Menu>().HasData(new MenuData().Get());
            mb.Entity<Company>().HasData(new CompanyData().Get());
            mb.Entity<Oem>().HasData(new OemData().Get());
            //mb.Entity<User>().HasData(new UserData().Get());
            mb.Entity<RuleTemplate>().HasData(new RuleTemplateData().Get());
            mb.Entity<CompanyPointsConfig>().HasData(new CompanyPointsConfigData().Get());
            //mb.Entity<Role>().HasData(new RoleData().Get());
        }

    }
}
